import { Input, NavBar } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Search() {
    const nav = useNavigate()
    return (
        <div> <NavBar >搜索</NavBar>
            <div style={{ display: 'flex' }}>
                <Input
                    placeholder='请输入内容'

                /> <span>搜索</span>
            </div>

            <p>搜索历史</p>
            <span style={{ backgroundColor: 'gray' }} onClick={() => nav('/searchlist')} >
                花
            </span>

        </div>
    )
}

export default Search